package ${package}.dao;

import ${systemPackage}.dao.Dao;
import ${package}.model.entity.Authority;

/**
 * AuthorityDao public interface.
 */
public interface AuthorityDao extends Dao {
    /**
     * Persists Authority entity.
     *
     * @param authority authority to persist
     */
    void save(Authority authority);

    /**
     * Removes Authority entity.
     *
     * @param authority authority to remove
     */
    void delete(Authority authority);

    /**
     * Retrieves Authority entity by name.
     *
     * @param authority authority
     * @return authority entity
     */
    Authority getByAuthority(String authority);
}
